package cn.tedu.web.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author issen
 * @since 2021-09-30
 */
@Data
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("ec_image")
@ApiModel(value = "Image对象", description = "")
public class Image implements Serializable {

    public Image(String name, String url) {
        this.name = name;
        this.url = url;
    }

    private static final long serialVersionUID = 1L;
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "关联id")
    private Integer gid;

    @ApiModelProperty(value = "图片名")
    private String name;

    @ApiModelProperty(value = "图片地址")
    private String url;

}